package com.jmz.apt.api.message.response;

/**
 * Created by fanglexue on 2019/10/28.
 */
public class Response {
    /**
     * 服务响应成功
     */
    public static final int RESPONSE_SUCCESS = 1;

    /**
     * 服务响应失败
     */
    public static final int RESPONSE_FAIL = 0;

    /**
     * 服务调用成功失败状态码 0：失败  1：成功 ，默认值为成功
     */
    private int code = RESPONSE_SUCCESS;

    /**
     * 服务调用返回的消息
     */
    private String text;

    /**
     * 服务返回的明细信息，一般用于异常信息的输出
     */
    private String detail;

    /**
     * @return the code
     */
    public int getCode() {
        return code;
    }

    /**
     * @param code the code to set
     */
    public void setCode(int code) {
        this.code = code;
    }

    /**
     * @return the text
     */
    public String getText() {
        return text;
    }

    /**
     * @param text the text to set
     */
    public void setText(String text) {
        this.text = text;
    }

    /**
     * @return the detail
     */
    public String getDetail() {
        return detail;
    }

    /**
     * @param detail the detail to set
     */
    public void setDetail(String detail) {
        this.detail = detail;
    }
}
